package com.ctshk.rpc.cms.config;

import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer;

public class RedisValueSerializer extends GenericJackson2JsonRedisSerializer {
	@Override
	public Object deserialize(byte[] bytes) {
        if (bytes == null || bytes.length == 0) {
            return null;
        }
        try {
        	return super.deserialize(bytes);
        } catch (Exception ex) {
        	return (Object) bytes;
        }
    }
}
